<link th:href="@{/styles/imageselect.css}" rel="stylesheet" type="text/css"/>

<script th:src="@{/scripts/imageselect.js}"></script>
<script th:src="@{/scripts/movie/new.js}"></script>

<form id="saveForm" action="./save" method="post">
    <table class="addNewInfList">
        <tr>
            <th>名称</th>
            <td><input class="inp-list w-200 clear-mr f-left" type="text"
                       id="name" name="name" maxlength="120"/></td>
            <th>剧照</th>
            <td width="240">
                <select name="path" id="path">
                    <option th:each="file:${files}"
                            th:value="${file}"
                            th:text="${file}">
                    </option>
                </select>
            </td>
        </tr>
        <tr>
            <th>日期</th>
            <td>
                <input onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
                       type="text" class="inp-list w-200 clear-mr f-left"
                       id="date" name="date"/>
            </td>
        </tr>
        <tr>
            <th>增加角色</th>
            <td width="240">
                <select name="rolename" id="rolename">
                    <option value="">增加角色</option>
                    <option th:each="role:${roles}"
                            th:value="${role}"
                            th:text="${role}">
                    </option>
                </select>
            </td>
            <th>选择演员</th>
            <td width="240">
                <select name="actorid" id="actorid">
                    <option value="">选择演员</option>
                    <option th:each="actor:${actors}"
                            th:value="${actor.id}"
                            th:text="${actor.name}">
                    </option>
                </select>
            </td>
        </tr>
    </table>
    <div class="bottomBtnBox">
        <a class="btn-93X38 saveBtn" href="javascript:void(0)">确定</a>
        <a class="btn-93X38 backBtn" href="javascript: closeDialog()">返回</a>
    </div>
</form>
<script type="text/javascript">
    $(document).ready(function () {
        $('select[name=path]').ImageSelect({dropdownWidth: 425});
    });
</script>

